class MallCategoryModel {
  String category_id;
  String category_name;
  String img;
  MallCategoryModel({this.category_id, this.category_name, this.img});

  MallCategoryModel.fromJson(Map<String, dynamic> json) {
    category_id = json['category_id'];
    category_name = json['category_name'];
    img = json['img'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['category_id'] = this.category_id;
    data['category_name'] = this.category_name;
    data['img'] = this.img;
    return data;
  }
}



class MallProductModel {
  String goods_id;
  String category_id;
  String name;
  String title;
  String cost_price;
  String old_price;
  String sell_price;
  String hits;
  int sales_volume;
  String create_time;
  String img_url;
  String category_name;
  dynamic bean_sell_price;
  String shopping_value;
  int merchant_type;
  String goods_type;
  String avg_price;
  String game_points;
  String task_name;
  MallProductModel({this.goods_id,this.category_id,this.name,this.title,this.cost_price,this.old_price,
    this.sell_price,this.hits,this.sales_volume,this.create_time,this.img_url,this.category_name,this.bean_sell_price,
    this.shopping_value,this.merchant_type,this.goods_type,this.avg_price,this.game_points,this.task_name});
  MallProductModel.fromJson(Map<String, dynamic> json) {
    goods_id = json['goods_id'];
    category_id = json['category_id'];
    name = json['name'];
    title = json['title'];
    cost_price = json['cost_price'];
    old_price = json['old_price'];
    sell_price = json['sell_price'];
    hits = json['hits'];
    sales_volume = json['sales_volume'];
    create_time = json['create_time'];
    img_url = json['img_url'];
    category_name = json['category_name'];
    bean_sell_price = json['bean_sell_price'];
    shopping_value = json['shopping_value'];
    merchant_type = json['merchant_type'];
    goods_type = json['goods_type'];
    avg_price = json['avg_price'];
    game_points = json['game_points'];
    task_name = json['task_name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['goods_id'] = this.goods_id;
    data['category_id'] = this.category_id;
    data['name'] = this.name;
    data['title'] = this.title;
    data['cost_price'] = this.cost_price;
    data['old_price'] = this.old_price;
    data['sell_price'] = this.sell_price;
    data['hits'] = this.hits;
    data['sales_volume'] = this.sales_volume;
    data['create_time'] = this.create_time;
    data['img_url'] = this.img_url;
    data['category_name'] = this.category_name;
    data['bean_sell_price'] = this.bean_sell_price;
    data['shopping_value'] = this.shopping_value;
    data['merchant_type'] = this.merchant_type;
    data['goods_type'] = this.goods_type;
    data['avg_price'] = this.avg_price;
    data['game_points'] = this.game_points;
    data['task_name'] = this.task_name;
    return data;
  }
}